/config/app/health/monitor//httpOptions/response/hasHeaders/<header_n¶
ame>
Configure a specific header/value pair for the response.
Use
Use if you want to specify the exact content of a response header and value pair. For the response to be successful, the header must exactly match what you specify here.
Parameters¶
name: Name of health monitor
header_name: Header name–Must use [URL encoding](https://docs.lineratesystems .com/087Release_2.6/250REST_API_Reference_Guide/000Getting_Started_with_the_RE ST_API/300Understanding_the_REST_Hierarchy#URL_Encoding).
Default Allowed¶
False
Request Methods¶
GET, POST, PUT, DELETE
Examples¶
GET
curl -b cookie.jar -k https://10.1.2.3:8443/lrs/api/v1.0/config/app/health/mon itor/hm-01/httpOptions/response/hasHeaders/name
GET Response
{"httpResponseCode": 404,
"internalResponseCode": 101,
"message": "Request failed: Unable to retrieve data from controller\n Path: /config/app/health/monitor/hm-01/httpOptions/response/hasHeaders/name\n ResponseCode: 101 (Path not found)\n",
"recurse": False,
"requestPath": "/config/app/health/monitor/hm-01/httpOptions/response/hasHeaders/name"}
GET (list children)
curl -b cookie.jar -k https://10.1.2.3:8443/lrs/api/v1.0/config/app/health/mon itor/hm-01/httpOptions/response/hasHeaders/name?op=list
GET Response
{"httpResponseCode": 404,
"internalResponseCode": 101,
"message": "Request failed: Unable to retrieve data from controller\n Path: /config/app/health/monitor/hm-01/httpOptions/response/hasHeaders/name\n ResponseCode: 101 (Path not found)\n",
"recurse": False,
"requestPath": "/config/app/health/monitor/hm-01/httpOptions/response/hasHeaders/name"}
GET (recursively list children)
curl -b cookie.jar -k https://10.1.2.3:8443/lrs/api/v1.0/config/app/health/mon itor/hm-01/httpOptions/response/hasHeaders/name?level=recurse
POST
curl -b cookie.jar –data @data.json -k -H “Content-Type: application/json” -X POST https://10.1.2.3:8443/lrs/api/v1.0/config/app/health/monitor/hm-01/httpOp tions/response/hasHeaders/name
POST Response
{"httpResponseCode": 200,
"requestPath": "/config/app/health/monitor/hm-01/httpOptions/response/hasHeaders/name",
"recurse":false}
- /config/app/health/monitor/
/httpOptions/response/hasHeaders/<header_name> 1. Parameters 2. Data Key - Data Type
- Default Data Value 3. Default Allowed 4. Request Methods 5. Related 6. Examples